package cn.sofwin.day0106.homework;

import java.math.BigInteger;

public class Transfortation {
   public static void main(String[] args){
       String str1 = new BigInteger("46",10).toString(2);
       String str2 = new BigInteger("46",10).toString(8);
       String str3 = new BigInteger("46",10).toString(16);

       System.out.println("十进制数：46");
       System.out.println("二进制：" + str1);
       System.out.println("八进制：" + str2);
       System.out.println("十六进制：" + str3);
   }
}
